package com.systop.student.mapper;


import com.systop.common.pojo.Student;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface StudentMapper{

    @Select("select * from student")
    List<Student> list();

    @Select("select * from student where s_no=#{s_no}")
    Student findByname(String s_no);
}
